/*
 * @Author: zheguo 3188606474@qq.com
 * @Date: 2024-04-17 10:33:43
 * @LastEditors: zheguo 3188606474@qq.com
 * @LastEditTime: 2024-04-18 08:43:00
 * @FilePath: \ProjectAction\projectOne\myapp\src\store\imgComponent.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'
import { ref } from 'vue'
import axios from 'axios'

const useSearch = defineStore('useSearch', () => {

    const SeachList = ref([])
    const getSeachList = () => {
        axios.get("../json/img.json").then(res => {
            // console.log(res.data.data4)
            SeachList.value = res.data.data4
        })
    }

    return {
        SeachList,
        getSeachList
    }
})

export default useSearch